package F02;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Test5FileInputStream {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("1.txt");
//        int by=fis.read();
//        System.out.println((char)by);
//        by=fis.read();
//        System.out.println((char)by);
//
//        int by=fis.read();
//        while (by!=-1){
//
//            System.out.print((char)by);
//            by=fis.read();
//        }
        int by ;
       while((by=fis.read())!=-1)
       {
           System.out.print((char)by);
       }
        fis.close();
    }
}
